{loadless boot}
<!--[if gte IE 9]>
{loadless hackerie9}
<![endif]-->
<link href="{baseurl}assets/css/imgareaselect-default.css" type="text/css" rel="stylesheet"/>
<script>
var js_debug = false;
var min_fetch_width = {echo $maxfetchwidth?$maxfetchwidth:200};
var min_fetch_height = {echo $maxfetchheight?$maxfetchheight:200};

var VERHASH = '{echo random(3)}', charset = 'utf-8',  cookiepre = 'ptx_', cookiedomain = '', cookiepath = '/', crop_image;
var JSMENU = [];
JSMENU['active'] = [];
JSMENU['timer'] = []; 
JSMENU['drag'] = [];
JSMENU['layer'] = 0;
JSMENU['zIndex'] = {'win':200,'menu':3000,'dialog':400,'prompt':500};
JSMENU['float'] = ''; 
var BROWSER = {};
var USERAGENT = navigator.userAgent.toLowerCase();
browserVersion({'ie':'msie','firefox':'','chrome':'','opera':'','safari':'','mozilla':'','webkit':'','maxthon':'','qq':'qqbrowser'});
if(BROWSER.safari) {
	BROWSER.firefox = true;
}
BROWSER.opera = BROWSER.opera ? opera.version() : 0;
function browserVersion(types) {
	var other = 1;
	for(i in types) { 
		var v = types[i] ? types[i] : i;
		if(USERAGENT.indexOf(v) != -1) {
			var re = new RegExp(v + '(\\/|\\s)([\\d\\.]+)', 'ig');
			var matches = re.exec(USERAGENT);
			var ver = matches != null ? matches[2] : 0;
			other = ver !== 0 && v != 'mozilla' ? 0 : other;
		}else {
			var ver = 0; 
		}
		eval('BROWSER.' + i + '= ver');
	}
	BROWSER.other = other;
}  
</script>    
{template misc/tip_common}

{loadjs onightjar/jquery-1.7.1.min} 
{loadjs bootstrap.min}
{loadjs onightjar/jquery.actionController}
{loadjs onightjar/jquery.scrollto}
{loadjs onightjar/jquery.masonry} 
{loadjs onightjar/jquery.infinitescroll}        
{loadjs onightjar/jquery.ba-resize.min}
{loadjs onightjar/mustache}  
{loadjs onightjar/jquery.form}  
{loadjs onightjar/jquery.validate.min}
{loadjs onightjar/jquery.imgareaselect.pack}
{loadjs onightjar/onightjar.functions}    
{loadjs onightjar/onightjar.bbcode}
{loadjs onightjar/onightjar.bootstrap}
{loadjs onightjar/onightjar.popover} 
{loadjs onightjar/onightjar.dialog}
{loadjs onightjar/onightjar.editor}  
{loadjs onightjar/ajaxupload}
{loadjs onightjar/onightjar.formactions}
{loadjs onightjar/onightjar.select}
{loadjs onightjar/onightjar.waterfall}
{loadjs onightjar/onightjar.timeline}
{loadjs onightjar/onightjar.crop}
{loadjs onightjar/sclogin}   
{loadjs onightjar/jquery.pager}
{loadjs puzzing}
<!--[if lte IE 6]>
	<script src="{baseurl}themes/puzzing/js/onightjar/letskillie6.zh_CN.pack.js"></script>
<![endif]-->
<script>
{if !$islogin&&$settings['uidefault_login']&&$method!='login'&&$module!='social/'&&$method!='register'&&$method!='forgetpassword'}
$(document).ready(function() {
	($.sclogin()).start();
});
{/if}
$(document).ready(function() {
	{if $islogin}
	setTimeout(function() {
		check_message('reward',true,3000,700);
	}, 1000);
	setTimeout(function() {
		check_message('user_message',false,0,0);
	}, 2000);
	setTimeout(function() {
		check_message('alert',false,0,0);
	}, 2200);
	{/if}

	{if $isadmin}
	setTimeout(function() {
		ajaxget('http://www.onightjar.com/index.php?c=pzupgrade&a=needupdate&pzrelease={pzrelease}&pzversion={pzversion}',{},
			function(result){
				show_message('danger','<a href="{url admin/index}" target="_blank" style="color:white;">'+result.message+"</a>",false,0);
			},
			function(result){
			});
	}, 1500);
	{/if}
	
	setTimeout(function() {
		fetchAjaxCount();
	}, 500);
	
});

</script>